  
  



  export const customerNoDesensitization = (param) => {
    // console.log('11111')
    // console.log(param)
    if (!param) {
        return ''
        }
        
        var data = param
        //手机号前三后四
        if (/^[1][3,4,5,7,8,9][0-9]{9}$/.test(data)) {
            data = data.substr(0, 3) + "****" + data.substr(-4);
        }
        //证件号显示前六位和后四位
        else if (/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/.test(data)) {
            data = data.substr(0, 6) + "****" + data.substr(-4);
        }

        
        return data;

  }
